<script>
export default {
  created () {
    console.log('app-created')
  },
  mounted () {
    console.log('app-mounted')
  },
  onLaunch () {
    console.log('app-onLaunch')
    this.getLocation()
    this.getAppOptions()
  },
  onShow () {
    console.log('app-onShow')
  },
  methods: {
    getLocation () {
      this.$wxp.getLocation().then(res => {
        console.log('app', res)
      })
    },
    getAppOptions () {
      const options = this.$root.$mp.appOptions
      const scene = decodeURIComponent(options.scene)
      console.log('app', options)
      console.log('scene', scene)
    }
  }
}
</script>

<style lang="less">
@import "./asset/style/index.less";
</style>
